module LoginEngineAdmin
  def admin_required
    if login_required!=true 
      return false end
    if not session[:admin].nil? then return true end
    # store current location so that we can 
    # come back after the user logged in
    store_location
    
    # call overwriteable reaction to unauthorized access
    access_denied
  end
end
